import { IconElement } from '../component.js'

import svg from 'remixicon/icons/System/loader-4-line.svg'

class Component extends IconElement {
    constructor() {
        super(
            svg,
            `@keyframes loading-rotate {
                to {
                    transform: rotate(1turn)
                }
            }
            svg{
                animation: loading-rotate 1.1s linear infinite;
            }
            `
        )
    }
}

if (!customElements.get('an-icon-loading')) {
    customElements.define('an-icon-loading', Component)
}